using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTO;
using BUS;
using DAL;
using Utility;
public partial class User_User_HetHan : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            loaddata();
        }
    }

    private void loaddata()
    {
        int ma = int.Parse(Request.QueryString["id"].ToString());
        MatHang_DTO mathang = MATHANG_BUS.GetByID(ma);
        mathang.MaMH = ma;
        mathang.MaTinhTrang_SP = 3;
        MATHANG_BUS.updatetinhtranghethan(mathang);
        Response.Redirect("~/user/user_mathang.aspx");
    }
}
